package com.malguy.services;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * @author malguy-wang sir
 * @create ${year}-${month}-${day}-${time}
 */
public class service1 extends HttpServlet {
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.setCharacterEncoding("utf-8");
        String username = req.getParameter("username");
        String password = req.getParameter("password");
        String[] like = req.getParameterValues("like");

        System.out.println("username = "+username);
        System.out.println("password = "+password);
        System.out.println("like:" + Arrays.toString(like));
    }
}
